//
//  NSDictionary+CW.m
//  CWDevelop
//
//  Created by LittoCats on 7/17/14.
//  Copyright (c) 2014 Littocats. All rights reserved.
//

#import "NSDictionary+CW.h"

@implementation NSDictionary (CW)

- (instancetype)dictionaryByRemoveObjectForKey:(NSString *)key
{
    if ([self isKindOfClass:[NSMutableDictionary class]]) {
        [(NSMutableDictionary *)self removeObjectForKey:key];
        return self;
    }
    NSMutableDictionary *dic = [NSMutableDictionary dictionaryWithDictionary:self];
    [dic removeObjectForKey:key];
    return dic;
    
}
@end
